From ef8bdfb7033cfc79a945707d751faeed6d2a821c Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 25 Jul 2007 17:45:22 +0000 Subject: [PATCH] Call gtk_tooltip_hide_tooltip() even if the tooltip is not visible yet. 2007-07-25 Matthias Clasen * gtk/gtktooltip.c (_gtk_tooltip_handle_event): Call gtk_tooltip_hide_tooltip() even if the tooltip is not visible yet. This fixes annoying dangling tooltips on systray icons. svn path=/trunk/; revision=18544 --- ChangeLog | 7 +++++++ gtk/gtktooltip.c | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e8bdeeffc4..8694cfaa0d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-07-25 Matthias Clasen + + * gtk/gtktooltip.c (_gtk_tooltip_handle_event): Call + gtk_tooltip_hide_tooltip() even if the tooltip is not + visible yet. This fixes annoying dangling tooltips + on systray icons. + 2007-07-24 Matthias Clasen * gtk/gtkiconcachevalidator.c: Silence the validator. diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c index 2d60b7c65d..77d465ca90 100644 --- a/gtk/gtktooltip.c +++ b/gtk/gtktooltip.c @@ -1118,7 +1118,7 @@ _gtk_tooltip_handle_event (GdkEvent *event) /* Hide the tooltip when there's no new tooltip widget */ if (!has_tooltip_widget) { - if (current_tooltip && GTK_TOOLTIP_VISIBLE (current_tooltip)) + if (current_tooltip) gtk_tooltip_hide_tooltip (current_tooltip); return; -- 2.30.2